package com.magicalcoder.lowcode.service.apiopen.dto;

import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class McQuery {
    private Integer page;//页码
    public Integer limit;//总共返回
    private Map<String,Object> param;//查询条件参数 {"id":1}
    private Map<String,String> condition;//查询条件符号 {"id":">"}
    private List<String> fields;//id,userName... 逗号分隔多个
    //二期再做
    private List<McQueryFunSelectDto> funFields;//函数字段 sum(name) as name
    private List<Map<String,String>> order;//排序 [{"name":"desc"},{"id":"asc"}]
    //函数 :[{"求和字段名":"返回别名"}]
    private List<String> group;//["name","id"]
    //二期再做
    private Map<String,Object> havingParam;//查询条件参数 {"id":1}
    private Map<String,String> havingCondition;//查询条件符号 {"id":">"}
}
